/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package classes;

import java.io.Serializable;
import java.sql.Time;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;

/**
 *
 * @author fumio
 */
@Entity
public class ServicoFuncionario implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    private Long idServicoFuncionario;
    @ManyToOne
    @JoinColumn(name = "idServico")
    private Servico servico;
    @ManyToOne
    @JoinColumn(name = "idFuncionario")
    private Funcionario funcionario;
    private Double percComissao;
    private Double valorServico;
    private Time tempoServico;

    public Long getIdServicoFuncionario() {
        return idServicoFuncionario;
    }

    public void setIdServicoFuncionario(Long idServicoFuncionario) {
        this.idServicoFuncionario = idServicoFuncionario;
    }

    public Servico getServico() {
        return servico;
    }

    public void setServico(Servico servico) {
        this.servico = servico;
    }

    public Funcionario getFuncionario() {
        return funcionario;
    }

    public void setFuncionario(Funcionario funcionario) {
        this.funcionario = funcionario;
    }

    
    public Double getPercComissao() {
        return percComissao;
    }

    public void setPercComissao(Double percComissao) {
        this.percComissao = percComissao;
    }

    public Double getValorServico() {
        return valorServico;
    }

    public void setValorServico(Double valorServico) {
        this.valorServico = valorServico;
    }

    public Time getTempoServico() {
        return tempoServico;
    }

    public void setTempoServico(Time tempoServico) {
        this.tempoServico = tempoServico;
    }
    
    
    
}
